package class_1_4;

public  class Animal {
    protected String name;
    protected int age;
    public Animal(String name,int age){
        this.name=name;
        this.age=age;
    }
    public Animal() {
    }

    public  void eat(String food){
        System.out.println(this.name+"正在吃"+food);
    }
    public static void test(){
        System.out.println("Animal's test");
    }
    public Animal func(){
        return new Animal();
    }
}
